package org.jeecg.modules.my.zhisk.service;

import org.jeecg.modules.my.zhisk.entity.ZhiskWenz;
import org.jeecg.modules.my.zhisk.entity.ZhiskLanm;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.my.zhisk.vo.ZhiskTreeModel;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 知识库栏目
 * @Author: jeecg-boot
 * @Date:   2021-08-21
 * @Version: V1.0
 */
public interface IZhiskLanmService extends IService<ZhiskLanm> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(ZhiskLanm zhiskLanm, List<ZhiskWenz> zhiskWenzList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(ZhiskLanm zhiskLanm, List<ZhiskWenz> zhiskWenzList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

	List<ZhiskTreeModel> queryTreeList(String key);
}
